#ifndef PGNPARSER_H
#define PGNPARSER_H

#include "pgngame.h"
#include <QString>
#include <QVector>
#include <QPair>
class PGNParser
{
public:
    PGNParser();
    void setContent(QStringList lines);
    int size();
    QVector<PGNGame> games();
    void debug();
private:
    QPair<QString, QString> parseTags(QString tagLine);
    int m_size;
    QString fileContent;
    QVector<PGNGame> m_gamesInFile;
};

#endif // PGNPARSER_H
